{% extends 'cms/cms-base.html' %}
{% block title %}发布管理{% endblock %}
{% block main %}
    <blockquote class="layui-elem-quote"><h2>发布管理</h2></blockquote>
    <!-- 检索  -->
    <div class="layui-row">
        <blockquote class="layui-elem-quote layui-quote-nm">
            <form class="layui-form" id="form">
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input" name="kw" placeholder="请输入搜索的内容"/>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select name="type" lay-verify="" lay-search>
                            <option value="0" selected>无类目</option>
                            {% for type in types %}
                                <option value="{{ type.id }}">{{ type.name }}</option>
                            {% endfor %}
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select name="topic" lay-verify="" lay-search>
                            <option value="0" selected>无话题</option>
                            {% for topic in topics %}
                                <option value="{{ topic.tid }}">{{ topic.title }}</option>
                            {% endfor %}
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <a class="layui-btn" lay-filter="search" lay-submit>搜索</a>
                    <a class="layui-btn layui-btn-primary" lay-filter="reset" lay-submit>清空</a>
                </div>
            </form>
        </blockquote>
    </div>
    <!-- list  -->
    <div class="layui-row">
        <table class="layui-table" lay-filter="list" id="list">
        </table>
    </div>
{% endblock %}
{% block footer %}
    <script type="text/html" id="rowOperation">
        <a class="layui-btn layui-btn-xs" lay-event="check">查看</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </script>
    <script src="{% static 'js/cms/posts.min.js' %}"></script>
{% endblock %}
